<!--#layout("/common/layout.html",{"jsBase":"/js/ncode/rightncode/"}){ -->
<div class="layui-row">
    <form id="searchForm" class="layui-form layui-form-pane">
        <div class="layui-collapse" lay-filter="condictionCol">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">查询条件</h2>
                <div class="layui-colla-content layui-show">
                    <div class="layui-row">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input type="hidden" name="batchId" id="batchId"/>
                                <label class="layui-form-label">N码</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="nCode" autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label">N码名称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="codeName" autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label">是否激活</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="isActived" id="isActived"  promtion="请选择"  lay-filter="code">
                                        <option value="">请选择</option>
                                        <option value="1" >是</option>
                                        <option value="0" >否</option>
                                    </select>
                                </div>
                                <label class="layui-form-label" style="width: 140px">权益名称</label>
                                <div class="layui-input-inline">
                                    <layui:simpleDataSelect name="roleId"  data="${roleList}"
                                                            attrId="roleId" attrName="roleName" laySearch="true" />
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">编号开始</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="numberStart" autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label">结束</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="numberEnd" autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label">状态</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="nStatus" id="nStatus"  promtion="请选择"  lay-filter="code">
                                        <option value="">请选择</option>
                                        <option value="1" >出库</option>
                                        <option value="0" >入库</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">类型</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="nType" id="nType"  promtion="请选择"  lay-filter="code">
                                        <option value="">请选择</option>
                                        <option value="2" >体验卡</option>
                                        <option value="4" >会员卡</option>
                                    </select>
                                </div>

                                <label class="layui-form-label">激活时间</label>
                                <div class="layui-input-inline">
                                    <div class="date-range-pick">
                                        <input type="text" name="activedTimeQuery" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <label class="layui-form-label">有效截止期</label>
                                <div class="layui-input-inline">
                                    <div class="date-range-pick">
                                        <input type="text" name="expiredDateQuery" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <button style="float: right;" class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="layui-btn-group">
    <layui:accessButton function="ncode.rightncode.del" action="del">删除</layui:accessButton>
    <layui:accessButton function="ncode.rightncode.out" action="out">部分出库</layui:accessButton>
    <layui:accessButton function="ncode.rightncode.allout" action="allout">全部出库</layui:accessButton>
    <layui:accessButton function="ncode.rightncode.export" action="export">导出</layui:accessButton>
</div>

<table id="rightncodeTable" lay-filter="rightncodeTable"></table>
<!--#} -->
<script>
    layui.use(['index'], function () {
        var index = layui.index;
        <!--# if(!(isEmpty(batchId))){  -->
        var batchId = ${batchId};
        $("#batchId").val(batchId);
        <!--# } -->
        index.init();
    });

</script>
